import Mock from 'mockjs';

Mock.mock(
  'http://202.120.40.87:14642/api/user',
  'put',
  (option) => {
    const { userId, newRole } = JSON.parse(option.body);
    // eslint-disable-next-line no-console
    console.log(userId, newRole);
    return {
      status: '200',
      message: '更新成功!',
      data: null,
    };
  },
);
